function TaoDuLieu(type){
		var rst;
		var connection;
		var sql;
	
		var rst = new ActiveXObject("ADODB.Recordset");
		var connection = new ActiveXObject("ADODB.Connection");
		connection.Open("Provider=Microsoft.Jet.OLEDB.4.0;data source=H:/RestaurantWeb/data/QLbanhang.mdb");
		sql = "Select * from hanghoa  where MaLoai = '"+type+"'";
		rst.Open(sql,connection);
		// Hoac : rst.Open("SanPham",connection);
		document.write("<table width= '700' border = '0'>");
		while(!rst.EOF)
		{	
			
 			document.write("	<tr>");
    		document.write("<th class='datafont5' width='300' rowspan='3' scope='row' ><img class='dataimage' src = "+rst(6)+"> </th>");
    		document.write("<td class='datafont' colspan='3'>	"+rst(1)+"	</td>");
    		document.write("</tr>");
 			document.write("<tr>");
    		document.write("<td class='datafont1' width='130'>	<strong>Mã món:	</strong>"+rst(0)+"	</td>");
    		document.write("<td class='datafont2' width='150'> <strong>Giá:	</strong>"+rst(2)+" VND	</td>");
    		document.write("<td class='datafont3' width='92'> <strong>ĐVT:	</strong>	"+rst(3)+"	</td>");
    		document.write("</tr>");
  			document.write("<tr>");
    		document.write("<td class='datafont4' colspan='3'>	<strong>Mô tả: </strong>"+rst(5)+"	</td>");
    		document.write("</tr>");
			
			rst.moveNext();
		}
		document.writeln("</table>");
		rst.Close();
	}